package cn.tedu.online.day05;

import cn.tedu.online.day05.instancemethod.StringUtil;

public class StringUtilTest {
    public String strToUpper(String string){
        return string.toUpperCase();
    }

    //用于将给出的字符串转换为大写字母
    public static String toUpperCase(String string, StringUtil stringUtil){
        return stringUtil.toUpper(string);
    }

    public static void main(String[] args) {
        StringUtilTest test = new StringUtilTest();
        //String up = toUpperCase("heeloWWWWWW",(string)-> test.strToUpper(string));

        String up = toUpperCase("WWWWEWaaaE",String::toUpperCase);
        System.out.println(up);
    }
}
